package testing;

import imageprocessing.DePaper;
import imageprocessing.Util;

import java.awt.image.BufferedImage;

public class Main {

	public static void main(String[] args) 
	{
		System.out.println("Start");
		
		/*
		BufferedImage[] results = {
				DePaper.autoDePaper("paper1.jpg"),
				DePaper.autoDePaper("paper2.jpg"),
				DePaper.autoDePaper("paper3.jpg"),
				DePaper.autoDePaper("paper4.jpg"),
				DePaper.autoDePaper("paper5.jpg"),
				DePaper.autoDePaper("paper6.jpg")
		};
		
		ImageViewer.showImageWindow(results, "DePaper");
		*/
		
		//Util.saveImage(DePaper.process(Util.loadImage("papir-100.jpg"), 0.05f, 0.5f, true), "result.jpg");
		
		Util.saveImage(DePaper.process(Util.loadImage("strana1.jpg"), 0.05f, 0.5f, true), "result1.jpg");
		Util.saveImage(DePaper.process(Util.loadImage("strana2.jpg"), 0.05f, 0.5f, true), "result2.jpg");
		
		System.out.println("Done!");

	}

}
